import Vue from 'vue'
import Router from 'vue-router'

import index from '@/page/index'
import checkIn from '@/page/checkIn'
import orderDetail from '@/page/orderDetail'
import orderSearch from '@/page/orderSearch'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      meta:{ title:'首页'},
      component: index
    },
    {
      path: '/checkIn',
      name: 'checkIn',
      meta:{ title:'登记入住'},
      component: checkIn
    },
    {
      path: '/orderDetail',
      name: 'orderDetail',
      meta:{ title:'订单详情'},
      component: orderDetail
    },
    {
      path: '/orderSearch',
      name: 'orderSearch',
      meta:{ title:'订单查询'},
      component: orderSearch
    }
  ]
})
